home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / gnu / a2_0b_Emacs_sr.lha / Emacs-19.25 / site-lisp / DUMPING < prev    next >
Lisp/Scheme  |  1994-09-10  |  6KB  |  133 lines

  1. DUMPING instructions for cc-mode.el 4.85
  2. Barry A. Warsaw <bwarsaw@cnri.reston.va.us>
  3. 1994/09/10 17:30:12
  4.  
  5. For now, you're going to be kind of on your own, but here are my, and
  6. other, experiences in dumping Emacs with cc-mode.  If you like
  7. cc-mode.el, you should lobby RMS to adopt it as *the* c-mode,
  8. c++-mode, and objc-mode for FSF's Emacs.  Note that if you are using
  9. XEmacs 19.11 (formerly Lucid Emacs), you do not need to do any of
  10. this.  XEmacs comes with cc-mode already dumped.  Yay!
  11.  
  12.     Do this:
  13.  
  14.     % cd <wherever_c_mode.el_is>
  15.     % mv c-mode.el c-mode.el.bak
  16.     % mv cc-mode.el c-mode.el
  17.  
  18.     Then byte-compile c-mode.el to produce c-mode.elc
  19.  
  20.     In both FSF 19.22 and Lucid 19.9 version.el is loaded too late in
  21.     the loadup.el file.  cc-mode.el depends on the value of
  22.     emacs-version so you need to move the load of version.el higher up
  23.     in the file.
  24.  
  25.     You may need to crank up PURESIZE in src/pursize.h.  I found I had
  26.     to add about 14k, others have reported an increase of ~23k, but of
  27.     course YMMV.
  28.  
  29.     Tell your users not to add the f/makunbound's or autoloads to
  30.     their .emacs files, since they'll now get cc-mode for free.
  31.  
  32.     In Lucid 19.9, loaddefs.el contains a lot of automatically
  33.     generated autoload definitions which will cause warnings when it
  34.     finds pointers to doc strings.  You can either ignore these
  35.     warnings (they won't hurt you), or you can comment out the
  36.     autoloads for c++-mode and c-style.  Or you can regenerate the
  37.     automatic autoloads once you've moved c++-mode.el and c-mode.el
  38.     aside, but you'll have to figure this part out by yourself.
  39.  
  40.     I've also been told that under FSF Emacs 19, you have to get rid
  41.     of the autoloads for cplus-md*.el since c++-mode.el has been
  42.     renamed. You should also do an update-directory-autoloads on the
  43.     lisp directory before you redump.
  44.  
  45.  
  46. Andrew Hall <fmrco!ahall@uunet.uu.net> provides this diff which
  47. applies to FSF's Emacs 19.25.90 loaddefs.el file.  This zaps the
  48. autoloads for cplus-md.el and c-mode.el so you shouldn't need to do an
  49. update-directory-autoloads.
  50.  
  51. *** loaddefs.el.orig    Sat Jul  2 15:39:30 1994
  52. --- loaddefs.el    Thu Jul 21 12:23:22 1994
  53. ***************
  54. *** 1959,2035 ****
  55.   
  56.   ;;;***
  57.   
  58. - ;;;### (autoloads (c++-mode) "cplus-md" "cplus-md.el" (11649 1462))
  59. - ;;; Generated autoloads from cplus-md.el
  60. - (autoload (quote c++-mode) "cplus-md" "\
  61. - Major mode for editing C++ code.  Very much like editing C code.
  62. - Expression and list commands understand all C++ brackets.
  63. - Tab at left margin indents for C++ code
  64. - Comments are delimited with /* ... */ {or with // ... <newline>}
  65. - Paragraphs are separated by blank lines only.
  66. - Delete converts tabs to spaces as it moves back.
  67. - \\{c++-mode-map}
  68. - Variables controlling indentation style:
  69. -  c-tab-always-indent
  70. -     Non-nil means TAB in C mode should always reindent the current line,
  71. -     regardless of where in the line point is when the TAB command is used.
  72. -     Default is t.
  73. -  c-auto-newline
  74. -     Non-nil means automatically newline before and after braces,
  75. -     and after colons and semicolons, inserted in C code.
  76. -  c-indent-level
  77. -     Indentation of C statements within surrounding block.
  78. -     The surrounding block's indentation is the indentation
  79. -     of the line on which the open-brace appears.
  80. -  c-continued-statement-offset
  81. -     Extra indentation given to a substatement, such as the
  82. -     then-clause of an if or body of a while.
  83. -  c-continued-brace-offset
  84. -     Extra indentation given to a brace that starts a substatement.
  85. -     This is in addition to c-continued-statement-offset.
  86. -  c-brace-offset
  87. -     Extra indentation for line if it starts with an open brace.
  88. -  c-brace-imaginary-offset
  89. -     An open brace following other text is treated as if it were
  90. -     this far to the right of the start of its line.
  91. -  c-argdecl-indent
  92. -     Indentation level of declarations of C function arguments.
  93. -  c-label-offset
  94. -     Extra indentation for line that is a label, or case or ``default:'', or
  95. -     ``public:'' or ``private:'', or ``protected:''.
  96. -  c++-electric-colon
  97. -     If non-nil at invocation of c++-mode (t is the default) colon electricly
  98. -     indents.
  99. -  c++-empty-arglist-indent
  100. -     If non-nil, a function declaration or invocation which ends a line with a
  101. -     left paren is indented this many extra spaces, instead of flush with the
  102. -     left paren.
  103. -  c++-friend-offset
  104. -     Offset of C++ friend declarations relative to member declarations.
  105. -  c++-member-init-indent
  106. -     Indentation level of member initializations in function declarations,
  107. -     if they are on a separate line beginning with a colon.
  108. -  c++-continued-member-init-offset
  109. -     Extra indentation for continuation lines of member initializations; NIL
  110. -     means to align with previous initializations rather than with the colon.
  111. - Settings for K&R, BSD, and Stroustrup indentation styles are
  112. -   c-indent-level                5    8    4
  113. -   c-continued-statement-offset  5    8    4
  114. -   c-continued-brace-offset                0
  115. -   c-brace-offset               -5   -8    0
  116. -   c-brace-imaginary-offset                0
  117. -   c-argdecl-indent              0    8    4
  118. -   c-label-offset               -5   -8   -4
  119. -   c++-empty-arglist-indent                4
  120. -   c++-friend-offset                       0
  121. - Turning on C++ mode calls the value of the variable `c++-mode-hook' with
  122. - no args if that value is non-nil." t nil)
  123. - ;;;***
  124.   ;;;### (autoloads (dabbrev-expand) "dabbrev" "dabbrev.el" (11577 36858))
  125.   ;;; Generated autoloads from dabbrev.el
  126.   
  127. --- 1959,1964 ----
  128.